package com.lzh.mapper;

import com.lzh.pojo.Student;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author reborn
 * @create 2020/5/22-14:43
 */
@Repository
public interface StudentMapper {


    List<Student>  selectStuAll(List<Integer> ids);

//    根据id查询
    Student selectStuById(int id);

    //    查询所有学生
    List<Student> selectStus();


    //添加学生
    int insertStu(Student student);

//    根据id删除学生
    int deleteStu(int id);

//    更新学生
    int updateStu(Student student);

    //根据id查询学生
    List<Student> selectStuByName(String name);
}
